<?php

namespace haibao\app\model\data;

class UserMessage extends Base{
    
    /**
     * 消息状态：已读
     */
    const STATUS_READ = 1;
    
    /**
     * 消息状态：未读
     */
    const STATUS_UNREAD = 0;
    
    /**
     * 消息状态：删除
     */
    const STATUS_DELETE = 2;
    
    /**
     * 用户ID
     */
    public $UserId;
    
    /**
     * 消息ID
     */
    public $MessageId;
    
    /**
     * 消息阅读状态
     */
    public $Status;
    
    /**
     * 创建时间
     */
    public $CreateTime;
    
    /**
     * 用户昵称
     */
    public $NickName;
    
    public function __construct(){
        parent::__construct();
        
        $this->intField('UserId', 'UserId', true);
        $this->intField('MessageId', 'MessageId', true);
        $this->intField('Status', 'Status');
        $this->dateField('CreateTime', 'CreateTime');
    
        $this->setTableName('UserMessage');
    }
}